package com.hongdee.scm.approvalflow.service;

import com.hongdee.scm.approvalflow.entity.TScmApprovalflow;

import java.util.Map;

/**
 * 名  称:ITScmApprovalflowService
 * 类  型:interface
 * 描  述:
 * 路  径:com.hongdee.scm.approvalflow.service
 * 作  者: 术洪超
 * 日  期:2017-06-14 10:41
 */
public interface ITScmApprovalflowService {


    public Map info(String type,String uid) throws Exception;

    public TScmApprovalflow save(TScmApprovalflow data, String uid) throws Exception;

    public void update(String id, String status) throws Exception;

    public Map page(String start, String limit, Map data, String uid) throws Exception;
    // 根据调拨类型查询审批是否完整（审批结束+审批流完整）
    //返回true为存在开始，否之不存在
   // public boolean isWholeApprovalFlow (String approvalflowPId,String startStatus,String uid) throws Exception;
    //调拨单提交按钮
    public Map commitApproval (String approvalflowPId,String id,String uid) throws Exception;
    /**
     * 根据调拨类型查询是否存在审批开始;返回true为存在开始，否之不存在
     * @param approvalflowPId
     * @param uid
     * @return
     * @throws Exception
     */
    public boolean isExistApprovalStart (String approvalflowPId,String uid) throws Exception;
    //退回单据
    public void backApproval (String id,String uid) throws Exception;

    public Map pushMessage(String approvalflowPId,String id,String uid,String status) throws Exception;

}
